package gui;

import javax.swing.LookAndFeel;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

public class Init {
	/**
	 * Hlavni metoda main spousti aplikaci
	 * 
	 * @param args
	 */
	public final static Logger logger = Logger.getLogger("MainLog");

	public static void main(String[] args) {
		PropertyConfigurator.configure("log.properties");
		logger.info("Start");
		LookAndFeel lipstikLnF = new com.lipstikLF.LipstikLookAndFeel();

		try {
			UIManager.setLookAndFeel(lipstikLnF);
		} catch (UnsupportedLookAndFeelException e1) {
			e1.printStackTrace();
		}

		javax.swing.SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				Desktop.createAndShowGUI();
			}
		});
	}
}
